package extend;

public class Sub extends Base{

    public Sub(String name, int age) {
        //通过super()方法，指定调用父类的有参构造器
        super(name, age);
        System.out.println("Hello!");
    }
}
